package com.example.service.provider.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component
@Aspect()
public class Service1Aop {

    @Pointcut(value = "bean(Service1Controller) && execution(* *(..))")
    public void pointcut(){
    }

    @Before("pointcut()")
    public void beforeNotice(){
        System.out.println("服务提供者，提供服务");
    }

}
